//
//  MyAccountHeader.m
//  tour
//
//  Created by 123 on 16/4/1.
//  Copyright © 2016年 Jushi. All rights reserved.
//

#import "MyAccountHeader.h"
#import <UIImageView+WebCache.h>
#import "MBProgressHUD+MJ.h"

@interface MyAccountHeader()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *leftMoneyLab;

@property (nonatomic,strong) NSDictionary *moneyDict;
@end
@implementation MyAccountHeader


+ (instancetype)accountHeader
{
    MyAccountHeader *header = [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([MyAccountHeader class]) owner:nil options:nil]lastObject];
    return header;
}
- (IBAction)actionClick:(UIButton *)btn
{
    if (self.getCashBlock) {
        self.getCashBlock();
    }
}
- (void)setModel:(MyCountModel *)model
{
    _model = model;
    self.leftMoneyLab.text = [NSString stringWithFormat:@"%.2f元",model.balance];
}

@end
